package com.neusoft.elm.controller;

import com.neusoft.elm.po.Business;
import com.neusoft.elm.po.Food;
import com.neusoft.elm.service.BusinessService;
import com.neusoft.elm.service.FoodService;
import com.neusoft.elm.service.impl.BusinessServiceImpl;
import com.neusoft.elm.service.impl.FoodServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class FoodController {
    FoodServiceImpl foodService=new FoodServiceImpl();
    public Object listFoodByBusinessId(HttpServletRequest request) throws Exception {
        Integer businessId = Integer.valueOf(request.getParameter("businessId"));
        List<Food> list = foodService.listFoodByBusinessId(businessId);
        return list;
    }
}
